using System.Collections;
using System.Collections.Generic;
using Game.Framework;
using Game.Framework.FState;
using UnityEngine;

namespace Game.Applcation
{
    public class StateLaunch : StateMainBase
    {
        public override void Enter(StateData param)
        {
            base.Enter(param);
            
            UILaunching.Open();
            EventBus.Send(new EventLaunchLoadingProgress((float)LoadingStep.Step7));
        }

        public override void FixedUpdate(float deltaTime)
        {
            base.FixedUpdate(deltaTime);
            
            if (_elapsedTime > 2f)
            {
                ChangeState<StateLaunchFinish>(null);
            }
        }
    }
}


